<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$data.title} - 试用详情 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/index.css" />
    <link rel="stylesheet" href="__CSS__/shiyong.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>
<body>

<div class="b-page">
    <include file="Public:tryheader"/>
    <div style="background-color:#f0f0f0;">
        <div class="b-body l-center" style="background:url(__IMAGES__/shiyong/liucheng.png) no-repeat 0 0; height:112px; padding:0; position:relative;">
            <div class="b-liuchengText" style="left:130px;">获得试用资格</div>
            <div class="b-liuchengText" style="left:312px;">以<span>{$data.price}</span>元到指定平台购买试用品</div>
            <div class="b-liuchengText" style="left:492px;">提交订单编号</div>
            <div class="b-liuchengText" style="left:682px;">提交试用报告</div>
            <div class="b-liuchengText" style="left:856px;">返还<span>{$data.price}</span>元到您互联支付账号</div>
        </div>
    </div>

    <div class="b-body l-center" style="">
        <div class="ofh" style="height:450px;">
            <img src="__FILESURL__{$data.image}" style="width:500px;height:450px;float:left;">
            <div style="padding-left:532px;min-height:450px;">
                <div style="font-size:30px;color:#000;line-height:1.2;">{$data.title}</div>
                <div class="ofh" style="padding-top:20px;">
                    <div class="b-scroll__tag" style="height:45px;line-height:45px;font-size:21px;font-weight:bold;color:#ff4c01;border: 1px solid #d6d6d6;">{$data.requestnum}人申请</div>
                    <div class="b-scroll__tag" style="height:45px;line-height:45px;font-size:21px;font-weight:bold;color:#ff4c01;border: 1px solid #d6d6d6;">￥{$data.price}元</div>
                    <div class="b-scroll__tag" style="height:45px;line-height:45px;font-size:21px;font-weight:bold;color:#ff4c01;border: 1px solid #d6d6d6;">{$data.trynum}份</div>
                </div>
                <if condition="$data.iffinish eq true">
                <div style="padding-top:20px;font-size:26px;font-weight:bold;color:#000;">结束时间：{$data.end_time|date='Y-m-d',###}</div>
                    <else/>
                <div style="padding-top:20px;font-size:26px;font-weight:bold;color:#000;">时间剩余：{$data.end_time|stime}</div>
                    </if>
                <if condition="$data.iffinish eq true">
                    <span href="javascript:;" class="try-applied-btn">已结束</span>
                    <elseif condition="$data.rcount gt 0 AND $data.iffinish eq false" />
                        <span href="javascript:;" class="try-applied-btn">已提交申请</span>
                        <else/>
                <a href="__WEBURL__/try/apply/" class="J_ajax_link try-apply-btn" data-datas="infoid,{$data.tryid}" >免费试用</a>
                </if>
                <div class="ofh" style="padding-top:15px;font-size:14px;color:#626262;">
                    <img class="pic_mid" src="__IMAGES__/shiyong/danbaojin.png">
                    （商家已存入总试用担保金 <span style="color:#ff4c01;">{$data.memberdbj}</span> 元，请放心申请）
                </div>
                <div class="ofh" style="padding-top:15px;font-size:14px;color:#626262;">
                    <span style="color:#ff4c01;">{$data.requestnum}</span> 人申请， <span style="color:#ff4c01;">{$data.applynum}</span> 人正在参与试用， <span style="color:#ff4c01;">{$data.finishnum}</span> 人完成试用， 剩余 <span style="color:#ff4c01;">{$data.lastnum}</span> 份
                </div>
                <div class="ofh" style="padding-top:15px;">
                    <!-- JiaThis Button BEGIN -->
                    <div class="jiathis_style_24x24">
                        <a class="jiathis_button_qzone"></a>
                        <a class="jiathis_button_tsina"></a>
                        <a class="jiathis_button_tqq"></a>
                        <a class="jiathis_button_weixin"></a>
                        <a class="jiathis_button_renren"></a>
                        <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                    </div>
                    <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
                    <!-- JiaThis Button END -->
                </div>
                <div class="ofh" style="padding-top:15px;font-size:14px;color:#626262; line-height: 25px">
                    请获得试用的焙友们将本活动分享到淘宝网、美丽说、蘑菇街、腾讯微博、新浪微博，并且必须在试用报告中递交分享链接。
                </div>
            </div>
        </div>
        <div class="ofh" style="margin-top:20px;border-bottom:2px solid #cf0f02;">
            <a name="dt" href="__WEBURL__/try/detail/{$data.tryid}.html#dt" class="b-detailTag {$act}">试用详情</a>
            <a name="rp" href="__WEBURL__/try/detail/{$data.tryid}.html?report=1#rp" class="b-detailTag {$act1}">试用报告（{$data.finishnum}）</a>
            <a name="ps" href="__WEBURL__/try/detail/{$data.tryid}.html?pass=1#ps" class="b-detailTag {$act2}">已审批通过（{$data.applynum}）</a>
        </div>
        <div class="b-detailContent">
            {$content}
        </div>

    </div>

    <include file="Public:footer"/>

</div>

<script>
    $(document).ready(function(){
        $('#baogao>.b-shiyongItem').each(function(i,val){
            if(i%3==2) $(this).addClass('last');
        });
        $('#jinqi>.b-shiyongItem').each(function(i,val){
            if(i%3==2) $(this).addClass('last');
        });
        console.log($('#baogao>.b-shiyongItem').length)
    });
</script>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
</body>
</html>